home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Drawing / TextModeMaintainer.h < prev    next >
Text File  |  1997-06-28  |  380b  |  26 lines

  1. // TextModeMaintainer.h
  2.  
  3. #ifndef TextModeMaintainer_h
  4. #define TextModeMaintainer_h
  5.  
  6. #ifndef GrafPortObject_h
  7. #include "GrafPortObject.h"
  8. #endif
  9.  
  10. class TextModeMaintainer
  11.   {
  12.     private:
  13.         GrafPortObject& port;
  14.         SourceMode old;
  15.         
  16.     public:
  17.         TextModeMaintainer();
  18.         TextModeMaintainer( SourceMode toUse );
  19.  
  20.         ~TextModeMaintainer()    { Reset(); }
  21.         
  22.         void Reset() const;
  23.   };
  24.  
  25. #endif
  26.